import request from '@/utils/request'
// 获取所有公司的信息
export function getPropetyAPI(params) {
  return request({
    url: '/park/propertyfee',
    params
  })
}
// 查看账单详情
export function getDetailAPI(id) {
  return request({
    url: `/park/propertyfee/${id}`
  })
}
// 删除帐单
export function delPropetyAPI(id) {
  return request({
    url: `/park/propertyfee/${id}`,
    method: 'DELETE'
  })
}
// 获取公司列表
export function getEnterpriseListAPI() {
  return request({
    url: '/park/all/enterprise'
  })
}
// 获取楼宇列表
export function getBulidingListAPI() {
  return request({
    url: '/park/all/building'
  })
}
// 预算金额
export function getPaymentAPI(data) {
  return request({
    url: '/park/propertyfee/pre/payment',
    method: 'post',
    data
  })
}
// 添加账单
export function addPropetyAPI(data) {
  return request({
    url: '/park/propertyfee',
    method: 'post',
    data
  })
}
